<template>
	<view>
		<view class="Grid">
			<view class="Grid-Item" v-for="(item,index) in List" :key="index">
				<view class="GSimg">
					<image class="Image" :src="item.img"></image>
				</view>
				<view class="GStitle">{{ item.title }}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				List: [{
						img: '../../static/logo.png',
						title: '九宫格布局1'
					},
					{
						img: '../../static/logo.png',
						title: '九宫格布局2'
					},
					{
						img: '../../static/logo.png',
						title: '九宫格布局3'
					},
					{
						img: '../../static/logo.png',
						title: '九宫格布局4'
					},
					{
						img: '../../static/logo.png',
						title: '九宫格布局5'
					},
					{
						img: '../../static/logo.png',
						title: '九宫格布局6'
					},
					{
						img: '../../static/logo.png',
						title: '九宫格布局7'
					},
					{
						img: '../../static/logo.png',
						title: '九宫格布局8'
					}, 
					{
						img: '../../static/logo.png',
						title: '九宫格布局9'
					}
				]
			};
		}
	}
</script>

<style scoped>
	.swbox image {
		width: 100%;
	}
	
	.pic {
		margin-top: 30px;
		display: flex;
		justify-content: center;
		align-items: center;
	}
	
	.text {
		text-align: center;
	}
	
	.btn {
		display: flex;
		justify-content: center;
	}
	.Grid {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		align-content: space-between;
		background: #f7f7f7;
		padding: 10rpx 0;
	}

	.Grid-Item {
		/* width: calc(100/3); */
		width: 33.3333%;
		height: 213rpx;
		text-align: center;
		border: 1rpx solid #ccc;
		box-sizing: border-box;
	}

	.GSimg {
		width: 100%;
		height: 96rpx;
		text-align: center;
		margin-top: 42rpx;
	}

	.Image {
		width: 96rpx;
		height: 96rpx;
	}

	.GStitle {
		width: 100%;
		height: 34rpx;
		line-height: 34rpx;
		color: #06121e;
		font-size: 24rpx;
		margin-top: 20rpx;
	}
</style>
